package top.gangster.lunan.templateservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.gangster.lunan.result.Result;
import top.gangster.lunan.templateservice.feign.imp.OSSClientImpl;

// 熔断器使用OSSClientImp类中的方法
@FeignClient(name = "service-oss",fallback = OSSClientImpl.class)
@Component
public interface OSSClient {

	/**
	 * 删除合同模板
	 * @param fileName 文件名
	 * @return Result
	 */
	@DeleteMapping("/ossservice/oss/template/delete/{fileName}")
	public Result deleteTemplate(@PathVariable("fileName") String fileName);
}
